import {SysUserService} from "../sys_user/sys_user.service";
import {CreateSysUserDto} from "../sys_user/dto/create-sys_user.dto";
import {Injectable} from "@nestjs/common";



@Injectable()
export class AuthService {
    constructor(private readonly userService: SysUserService) {}

    // 登录
    async login(user: CreateSysUserDto) {
        return  this.userService.login(user)

    }

    async checkAdmin() {
        return true
    }

}
